Component studio.extensions.template-module-demo
In bundle org.nuxeo.template.manager.samples
Contributions
- studio.extensions.template-module-demo--schema
- studio.extensions.template-module-demo--layouts
- studio.extensions.template-module-demo--types
- studio.extensions.template-module-demo--filters
- studio.extensions.template-module-demo--widgettypes
- studio.extensions.template-module-demo--actions
- studio.extensions.template-module-demo--directories
- studio.extensions.template-module-demo--doctype
- studio.extensions.template-module-demo--versioningRules
XML Source
<?xml version="1.0" encoding="UTF-8"?>
<component name="studio.extensions.template-module-demo" version="1.0.0">
<require>org.nuxeo.runtime.started</require>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
<schema name="customer_reference" prefix="cr" src="data/schemas/customer_reference.xsd"/>
<schema name="InterventionStatement" prefix="is" src="data/schemas/InterventionStatement.xsd"/>
</extension>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
<doctype name="CustomerReference" extends="File">
<schema name="customer_reference"/>
</doctype>
<doctype name="InterventionStatement" extends="File">
<schema name="InterventionStatement"/>
</doctype>
</extension>
<extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="types">
<types>
<type name="CustomerReference">default</type>
</types>
<types>
<type name="InterventionStatement">default</type>
</types>
</extension>
<extension target="org.nuxeo.ecm.platform.types.TypeService" point="types">
<type id="CustomerReference">
<label>Customer Reference</label>
<description></description>
<default-view>view_documents</default-view>
<layouts mode="create">
<layout>layout@CustomerReference-create</layout>
</layouts>
<layouts mode="edit">
<layout>layout@CustomerReference-edit</layout>
</layouts>
<layouts mode="view">
<layout>layout@CustomerReference-view</layout>
</layouts>
</type>
<type id="Folder">
<subtypes>
<type>CustomerReference</type>
</subtypes>
</type>
<type id="Workspace">
<subtypes>
<type>CustomerReference</type>
</subtypes>
</type>
<type id="InterventionStatement">
<label>Intervention Statement</label>
<description>Statement that consultants have to bring back signed after an intervention at client's site</description>
<default-view>view_documents</default-view>
<layouts mode="create">
<layout>layout@InterventionStatement-create</layout>
</layouts>
<layouts mode="edit">
<layout>layout@InterventionStatement-edit</layout>
</layouts>
<layouts mode="view">
<layout>layout@InterventionStatement-view</layout>
</layouts>
</type>
<type id="Folder">
<subtypes>
<type>InterventionStatement</type>
</subtypes>
</type>
<type id="Workspace">
<subtypes>
<type>InterventionStatement</type>
</subtypes>
</type>
</extension>
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions"/>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="layouts">
<layout name="layout@CustomerReference-create">
<templates>
<template mode="any">/layouts/template-module-demo_layout_template.xhtml</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>title</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>description</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>project_name</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>abstract</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>date_of_delivery</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>industry</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>project_duration</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>resources</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>total_cost</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>content</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>quote</widget>
</row>
</rows>
<widget name="title" type="text">
<labels>
<label mode="any">Title</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:title</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="description" type="textarea">
<labels>
<label mode="any">Description</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:description</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="project_name" type="text">
<labels>
<label mode="any">Project name</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:project_name</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="abstract" type="htmltext">
<labels>
<label mode="any">Abstract</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:abstract</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="date_of_delivery" type="datetime">
<labels>
<label mode="any">Date of delivery</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:date_of_delivery</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="industry" type="selectOneDirectory">
<labels>
<label mode="any">Industry</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:industry</field>
</fields>
<properties widgetMode="edit">
<property name="localize">false</property>
<property name="directoryName">Industry</property>
<property name="displayIdAndLabel">false</property>
<property name="ordering">label</property>
<property name="notDisplayDefaultOption">false</property>
<property name="displayObsoleteEntries">false</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="project_duration" type="text">
<labels>
<label mode="any">Project duration</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:project_duration</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="resources" type="text">
<labels>
<label mode="any">Resources</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:resources</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="total_cost" type="text">
<labels>
<label mode="any">Total cost</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:total_cost</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="content" type="file">
<labels>
<label mode="any">Picture</label>
</labels>
<translated>false</translated>
<fields>
<field>file:content</field>
<field>file:filename</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="iconRendered">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="quote" type="textarea">
<labels>
<label mode="any">Quote</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:quote</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
</layout>
<layout name="layout@CustomerReference-edit">
<templates>
<template mode="any">/layouts/template-module-demo_layout_template.xhtml</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>title</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>description</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>project_name</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>abstract</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>date_of_delivery</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>industry</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>project_duration</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>resources</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>total_cost</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>content</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>quote</widget>
</row>
</rows>
<widget name="title" type="text">
<labels>
<label mode="any">Title</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:title</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="description" type="textarea">
<labels>
<label mode="any">Description</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:description</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="project_name" type="text">
<labels>
<label mode="any">Project name</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:project_name</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="abstract" type="htmltext">
<labels>
<label mode="any">Abstract</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:abstract</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="date_of_delivery" type="datetime">
<labels>
<label mode="any">Date of delivery</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:date_of_delivery</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="industry" type="selectOneDirectory">
<labels>
<label mode="any">Industry</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:industry</field>
</fields>
<properties widgetMode="edit">
<property name="localize">false</property>
<property name="directoryName">Industry</property>
<property name="displayIdAndLabel">false</property>
<property name="ordering">label</property>
<property name="notDisplayDefaultOption">false</property>
<property name="displayObsoleteEntries">false</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="project_duration" type="text">
<labels>
<label mode="any">Project duration</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:project_duration</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="resources" type="text">
<labels>
<label mode="any">Resources</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:resources</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="total_cost" type="text">
<labels>
<label mode="any">Total cost</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:total_cost</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="content" type="file">
<labels>
<label mode="any">Picture</label>
</labels>
<translated>false</translated>
<fields>
<field>file:content</field>
<field>file:filename</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="iconRendered">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="quote" type="textarea">
<labels>
<label mode="any">Quote</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:quote</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
</layout>
<layout name="layout@CustomerReference-view">
<templates>
<template mode="any">/layouts/template-module-demo_layout_template.xhtml</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>title</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>description</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>project_name</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>abstract</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>date_of_delivery</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>industry</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>project_duration</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>resources</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget>total_cost</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
</properties>
<widget/>
</row>
</rows>
<widget name="title" type="text">
<labels>
<label mode="any">Title</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:title</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="description" type="textarea">
<labels>
<label mode="any">Description</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:description</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="project_name" type="text">
<labels>
<label mode="any">Project name</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:project_name</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="abstract" type="htmltext">
<labels>
<label mode="any">Abstract</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:abstract</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="date_of_delivery" type="datetime">
<labels>
<label mode="any">Date of delivery</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:date_of_delivery</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="industry" type="selectOneDirectory">
<labels>
<label mode="any">Industry</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:industry</field>
</fields>
<properties widgetMode="view">
<property name="localize">false</property>
<property name="directoryName">Industry</property>
<property name="displayIdAndLabel">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="project_duration" type="text">
<labels>
<label mode="any">Project duration</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:project_duration</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="resources" type="text">
<labels>
<label mode="any">Resources</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:resources</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="total_cost" type="text">
<labels>
<label mode="any">Total cost</label>
</labels>
<translated>false</translated>
<fields>
<field>cr:total_cost</field>
</fields>
<properties mode="any"/>
</widget>
</layout>
<layout name="layout@InterventionStatement-create">
<templates>
<template mode="any">/layouts/template-module-demo_layout_template.xhtml</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>title</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>content</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>template_rendering_header</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_name</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_adress</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_zip</widget>
<widget>client_city</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_pm</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_tech_guy</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>invoice_number</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>template_rendering_header_1</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>subject</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>description</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>date</widget>
<widget>days</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>site</widget>
<widget>consultant</widget>
</row>
</rows>
<widget name="title" type="text">
<labels>
<label mode="any">Title</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:title</field>
</fields>
<properties widgetMode="edit">
<property name="styleClass">dataInputText</property>
<property name="required">true</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="content" type="file">
<labels>
<label mode="any">Attached File</label>
</labels>
<translated>false</translated>
<fields>
<field>file:content</field>
<field>file:filename</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="iconRendered">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="template_rendering_header" type="template_rendering_header">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">Client Information</label>
</labels>
<translated>false</translated>
<widgetModes>
<mode value="create">view</mode>
</widgetModes>
<properties mode="any"/>
</widget>
<widget name="client_name" type="text">
<labels>
<label mode="any">Name</label>
</labels>
<helpLabels>
<label mode="any">Name of the client</label>
</helpLabels>
<translated>false</translated>
<fields>
<field>is:client_name</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_adress" type="text">
<labels>
<label mode="any">Adress</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_adress</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_zip" type="int">
<labels>
<label mode="any">Zip Code</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_zip</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_city" type="text">
<labels>
<label mode="any">City</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_city</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_pm" type="text">
<labels>
<label mode="any">Project Manager</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_pm</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_tech_guy" type="text">
<labels>
<label mode="any">Technical Contact</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_tech_guy</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="invoice_number" type="text">
<labels>
<label mode="any">Invoice number</label>
</labels>
<translated>false</translated>
<fields>
<field>is:invoice_number</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="template_rendering_header_1" type="template_rendering_header">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">Intervention Details</label>
</labels>
<translated>false</translated>
<widgetModes>
<mode value="create">view</mode>
</widgetModes>
<properties mode="any"/>
</widget>
<widget name="subject" type="text">
<labels>
<label mode="any">Subject</label>
</labels>
<translated>false</translated>
<fields>
<field>is:subject</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="description" type="textarea">
<labels>
<label mode="any">Description</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:description</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="date" type="datetime">
<labels>
<label mode="any">Date</label>
</labels>
<translated>false</translated>
<fields>
<field>is:date</field>
</fields>
<properties widgetMode="edit">
<property name="showsTime">false</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="days" type="text">
<labels>
<label mode="any">Number of days</label>
</labels>
<translated>false</translated>
<fields>
<field>is:days</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="site" type="text">
<labels>
<label mode="any">Location</label>
</labels>
<translated>false</translated>
<fields>
<field>is:site</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="consultant" type="singleUserSuggestion">
<labels>
<label mode="any">Nuxeo Consultant</label>
</labels>
<translated>false</translated>
<fields>
<field>is:consultant</field>
</fields>
<properties widgetMode="edit">
<property name="displayEmailInSuggestion">false</property>
<property name="userSuggestionSearchType">USER_TYPE</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
</layout>
<layout name="layout@InterventionStatement-edit">
<templates>
<template mode="any">/layouts/template-module-demo_layout_template.xhtml</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>title</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>content</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>template_rendering_header</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_name</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_adress</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_zip</widget>
<widget>client_city</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_pm</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_tech_guy</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>invoice_number</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>template_rendering_header_1</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>subject</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>description</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>date</widget>
<widget>days</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>site</widget>
<widget>consultant</widget>
</row>
</rows>
<widget name="title" type="text">
<labels>
<label mode="any">Title</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:title</field>
</fields>
<properties widgetMode="edit">
<property name="styleClass">dataInputText</property>
<property name="required">true</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="content" type="file">
<labels>
<label mode="any">Attached File</label>
</labels>
<translated>false</translated>
<fields>
<field>file:content</field>
<field>file:filename</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="iconRendered">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="template_rendering_header" type="template_rendering_header">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">Client Information</label>
</labels>
<translated>false</translated>
<widgetModes>
<mode value="edit">view</mode>
</widgetModes>
<properties mode="any"/>
</widget>
<widget name="client_name" type="text">
<labels>
<label mode="any">Name</label>
</labels>
<helpLabels>
<label mode="any">Name of the client</label>
</helpLabels>
<translated>false</translated>
<fields>
<field>is:client_name</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_adress" type="text">
<labels>
<label mode="any">Adress</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_adress</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_zip" type="int">
<labels>
<label mode="any">Zip Code</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_zip</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_city" type="text">
<labels>
<label mode="any">City</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_city</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_pm" type="text">
<labels>
<label mode="any">Project Manager</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_pm</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_tech_guy" type="text">
<labels>
<label mode="any">Technical Contact</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_tech_guy</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="invoice_number" type="text">
<labels>
<label mode="any">Invoice number</label>
</labels>
<translated>false</translated>
<fields>
<field>is:invoice_number</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="template_rendering_header_1" type="template_rendering_header">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">Intervention Details</label>
</labels>
<translated>false</translated>
<widgetModes>
<mode value="edit">view</mode>
</widgetModes>
<properties mode="any"/>
</widget>
<widget name="subject" type="text">
<labels>
<label mode="any">Subject</label>
</labels>
<translated>false</translated>
<fields>
<field>is:subject</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="description" type="textarea">
<labels>
<label mode="any">Description</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:description</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="date" type="datetime">
<labels>
<label mode="any">Date</label>
</labels>
<translated>false</translated>
<fields>
<field>is:date</field>
</fields>
<properties widgetMode="edit">
<property name="showsTime">false</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="days" type="text">
<labels>
<label mode="any">Number of days</label>
</labels>
<translated>false</translated>
<fields>
<field>is:days</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="site" type="text">
<labels>
<label mode="any">Location</label>
</labels>
<translated>false</translated>
<fields>
<field>is:site</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="consultant" type="singleUserSuggestion">
<labels>
<label mode="any">Nuxeo Consultant</label>
</labels>
<translated>false</translated>
<fields>
<field>is:consultant</field>
</fields>
<properties widgetMode="edit">
<property name="displayEmailInSuggestion">false</property>
<property name="userSuggestionSearchType">USER_TYPE</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
</layout>
<layout name="layout@InterventionStatement-view">
<templates>
<template mode="any">/layouts/template-module-demo_layout_template.xhtml</template>
</templates>
<rows>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>template_rendering_header</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_name</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_adress</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_zip</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>client_city</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_pm</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>client_tech_guy</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>invoice_number</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>template_rendering_header_1</widget>
<widget/>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>subject</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">2</property>
</properties>
<widget>description</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>date</widget>
<widget>days</widget>
</row>
<row>
<properties mode="any">
<property name="nxl_colspan_0">1</property>
<property name="nxl_colspan_1">1</property>
</properties>
<widget>site</widget>
<widget>consultant</widget>
</row>
</rows>
<widget name="template_rendering_header" type="template_rendering_header">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">Client Information</label>
</labels>
<translated>false</translated>
<properties mode="any"/>
</widget>
<widget name="client_name" type="text">
<labels>
<label mode="any"></label>
</labels>
<helpLabels>
<label mode="any">Name of the client</label>
</helpLabels>
<translated>false</translated>
<fields>
<field>is:client_name</field>
</fields>
<properties widgetMode="view">
<property name="localize">false</property>
<property name="escape">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_adress" type="text">
<labels>
<label mode="any"></label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_adress</field>
</fields>
<properties widgetMode="view">
<property name="localize">false</property>
<property name="escape">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_zip" type="int">
<labels>
<label mode="any"></label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_zip</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="client_city" type="text">
<labels>
<label mode="any"></label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_city</field>
</fields>
<properties widgetMode="view">
<property name="localize">false</property>
<property name="escape">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_pm" type="text">
<labels>
<label mode="any">Project Manager</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_pm</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="client_tech_guy" type="text">
<labels>
<label mode="any">Technical Contact</label>
</labels>
<translated>false</translated>
<fields>
<field>is:client_tech_guy</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="invoice_number" type="text">
<labels>
<label mode="any">Invoice number</label>
</labels>
<translated>false</translated>
<fields>
<field>is:invoice_number</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="template_rendering_header_1" type="template_rendering_header">
<handlingLabels>true</handlingLabels>
<labels>
<label mode="any">Intervention Details</label>
</labels>
<translated>false</translated>
<properties mode="any"/>
</widget>
<widget name="subject" type="text">
<labels>
<label mode="any">Subject</label>
</labels>
<translated>false</translated>
<fields>
<field>is:subject</field>
</fields>
<properties mode="any"/>
</widget>
<widget name="description" type="textarea">
<labels>
<label mode="any">Description</label>
</labels>
<translated>false</translated>
<fields>
<field>dc:description</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="date" type="datetime">
<labels>
<label mode="any">Date</label>
</labels>
<translated>false</translated>
<fields>
<field>is:date</field>
</fields>
<properties widgetMode="edit">
<property name="showsTime">false</property>
<property name="required">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="days" type="text">
<labels>
<label mode="any">Number of days</label>
</labels>
<translated>false</translated>
<fields>
<field>is:days</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="site" type="text">
<labels>
<label mode="any">Location</label>
</labels>
<translated>false</translated>
<fields>
<field>is:site</field>
</fields>
<properties widgetMode="edit">
<property name="required">false</property>
<property name="disabled">false</property>
</properties>
<properties mode="any"/>
</widget>
<widget name="consultant" type="singleUserSuggestion">
<labels>
<label mode="any">Nuxeo Consultant</label>
</labels>
<translated>false</translated>
<fields>
<field>is:consultant</field>
</fields>
<properties widgetMode="edit">
<property name="displayEmailInSuggestion">false</property>
<property name="userSuggestionSearchType">USER_TYPE</property>
<property name="required">false</property>
</properties>
<properties widgetMode="view">
<property name="displayEmailInSuggestion">false</property>
<property name="userSuggestionSearchType">USER_TYPE</property>
</properties>
<properties mode="any"/>
</widget>
</layout>
</extension>
<extension target="org.nuxeo.ecm.directory.sql.SQLDirectoryFactory" point="directories">
<directory name="Industry">
<schema>vocabulary</schema>
<dataSource>java:/nxsqldirectory</dataSource>
<cacheTimeout>3600</cacheTimeout>
<cacheMaxSize>1000</cacheMaxSize>
<idField>id</idField>
<autoincrementIdField>false</autoincrementIdField>
<createTablePolicy>on_missing_columns</createTablePolicy>
<table>studio_vocabulary_Industry</table>
<dataFile>data/vocabularies/Industry.csv</dataFile>
</directory>
</extension>
<extension target="org.nuxeo.ecm.directory.ui.DirectoryUIManager" point="directories">
<directory name="Industry" layout="vocabulary" sortField="label"/>
</extension>
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
<filter id="create" append="true">
<rule grant="false">
<type>CustomerReference</type>
<type>InterventionStatement</type>
</rule>
</filter>
</extension>
<extension target="org.nuxeo.ecm.core.versioning.VersioningService" point="versioningRules">
<versioningRule typeName="CustomerReference">
<initialState major="0" minor="0"/>
<options lifeCycleState="*">
<none default="true"/>
<minor/>
<major/>
</options>
</versioningRule>
<versioningRule typeName="InterventionStatement">
<initialState major="0" minor="0"/>
<options lifeCycleState="*">
<none default="true"/>
<minor/>
<major/>
</options>
</versioningRule>
</extension>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager" point="widgettypes">
<widgetType name="template_rendering_header">
<configuration>
<title>Header</title>
<description>
The header widget just displays the widget label.
</description>
<supportedModes>
<mode>edit</mode>
<mode>view</mode>
</supportedModes>
<fields>
<list>false</list>
<complex>false</complex>
<supportedTypes/>
<defaultTypes/>
</fields>
<categories>
<category>configuration_not_ready</category>
</categories>
</configuration>
<handler-class>
org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
</handler-class>
<property name="template">
/widgets/template_rendering_header_widget.xhtml
</property>
</widgetType>
</extension>
</component>